function request2(requestUrl,method, data={}, auth = true) {
    return new Promise((resolve, rejecte) => {
        uni.request({
            url: "https://tomato.daoxuan.cc" + requestUrl,
            data,
            method,
            header: {
                Accept: 'application/json',
                'Content-Type': 'application/json',
                'X-Requested-With': 'XMLHttpRequest',
                "Authorization": auth ? "Bearer " + uni.getStorageSync('login').access : ""
            },
            success: (res) => {
                resolve(res);
            },
            fail: (err) => {
                rejecte(err)
            }
        });
    })
}
export default request2;
